﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<QuizAppMvc2.QuestaoSimplesView>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                idQuestao
            </th>
            <th>
                Texto
            </th>
            <th>
                Gabarito
            </th>
            <th>
                Materia
            </th>
            <th>
                Topico
            </th>
            <th>
                Subtopico
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.idQuestao }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.idQuestao })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.idQuestao })%>
            </td>
            <td>
                <%: item.idQuestao %>
            </td>
            <td>
                <%: item.Texto %>
            </td>
            <td>
                <%: item.Gabarito %>
            </td>
            <td>
                <%: item.Nome %>
            </td>
            <td>
                <%: item.Topico %>
            </td>
            <td>
                <%: item.Subtopico %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

